// pages/welcome/welcome.js

const app = getApp();

Page({

  data: {
    photo_url: app.globalData.baseUrl + "/wx/TX.jpg",
    user:{}
  },

  onTap:function(event){
    console.info("hello")

    wx.navigateTo({
      url: 's'
    })
  },

  onLoad: function (options) {

    var key = app.globalData.key

    if (typeof key === "undefined" || key === null || key === null) {
      console.info(" key is null")
    } else {
      wx.redirectTo({
        url: 'index'
      })
    }
  }
})